# swlite-authorize, swlite-modify, swlite-extensions

FILE(GLOB man1 *.1)
FILE(GLOB ruby *.rb)

add_custom_target(manpages SOURCES ${man1})
add_custom_target(scripts SOURCES ${ruby})

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/ipl-sipwitch.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME ipl-sipwitch)

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/swlite-authorize.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME swlite-authorize)

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/swlite-endpoints.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME swlite-endpoints)

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/swlite-extensions.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME swlite-extensions)

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/swlite-list.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME swlite-list)

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/swcert-create.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME swcert-create)

install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/swcert-read.rb DESTINATION ${CMAKE_INSTALL_SBINDIR} RENAME swcert-read)

install(FILES ${man1} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
